def result

try {
	if(session.getAttribute("groovyShell") == null) {
		throw new RuntimeException("GroovyShell was not found in session")
	}
	
	session.setAttribute("groovyShell", null)
	
	if(session.getAttribute("groovyShell") == null) {
		result = "GroovyShell successfully reset"
	}
	else {
		result = "GroovyShell could not be reset"
	}
}
catch(e) {
	result = e.toString()
}

println result